<template>
  <el-button :type="type" size="mini" icon="el-icon-delete">
    {{ name }}
  </el-button>
</template>
<script>
export default {
  name: 'btn-table-delete',
  data() {
    return {
      type: 'text',
    }
  },
  props: {
    name: {
      type: String,
      default: '删除',
    },
  },
  mounted() {
    this.type = this.tableBtnType ? 'text' : 'danger'
  },
}
</script>